Return

Edit Task: SetResourceDetails ResourceRange

Description

The ResourceRange attribute under EditTask defines the resource range constraint for the specified resource for all the task's possibilities.

Parameters

ParameterDescription
ResourceNameA string of text of the resource that is being defined within the command.
MinRangeAppliesA Boolean value that determines if there is a minimum range constraint.
MinRangeValueA double value that defines the minimum range constraint value.
MaxRangeAppliesA Boolean value that determines if there is a maximum range constraint.
MaxRangeValueA double value that defines the maximum range constraint value.

Examples

Allow any minimum capacity, and set a maximum of 15 capacity units for all possibilities containing ResA in TaskA.

PATCH api/task/TaskA

Body:

{

"SetResourceDetails" : {

"ResourceName" : "ResA",

"ResourceRange" : {

"FixedAmount" : "23",

"RateAmount" : "0.5",

"MinRangeApplies" : "FALSE",

"MinRangeValue" : "-1",

"MaxRangeApplies" : "TRUE",

"MaxRangeValue" : "15" }

}

}